package com.test;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.Date;

/**
 * @author yuxi
 * @version 1.0
 * @date 2025/11/6
 * @Description:
 */
public class Customer implements Serializable {
    //属性私有
    private Integer id;
    private String name;
    private Integer age;
    private Date birthday;
    private Timestamp registerTime;
    //构造器：无参、有参，set/get/toString

    public Customer() {
    }

    public Customer(Integer id, String name, Integer age, Date birthday, Timestamp registerTime) {
        this.id = id;
        this.name = name;
        this.age = age;
        this.birthday = birthday;
        this.registerTime = registerTime;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public Timestamp getRegisterTime() {
        return registerTime;
    }

    public void setRegisterTime(Timestamp registerTime) {
        this.registerTime = registerTime;
    }

    @Override
    public String toString() {
        return "Customer{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", age=" + age +
                ", birthday=" + birthday +
                ", registerTime=" + registerTime +
                '}';
    }
}
